import request from '@/utils/request'

/**
 * 查询-条件查询某页编码规则数据，每页十条
 * @param getCodeRule
 */
export function getCodeRules(data) {
  return request({
    url: `md/codeRules/query`,
    method: 'get',
    params: data
  })
}
/**
 * 删除-删除编码规则数据
 * @param deleteCodeRules
 */
export function deleteCodeRules(data) {
  return request({
    url: `md/codeRules/delete`,
    method: 'get',
    params: data
  })
}
/**
 * 保存-保存编码规则数据
 * @param saveCodeRules
 */
export function saveCodeRules(data) {
  return request({
    url: `md/codeRules/save`,
    method: 'post',
    data
  })
}
